#include <stdio.h>
#define PAGES 931

int main(void)
{
  printf("*%d*\n",PAGES );
  printf("*%2d*\n", PAGES);
  printf("*%10d*\n", PAGES);
  printf("*%-10d*\n", PAGES);
  printf("*%+10d*\n", PAGES);
  printf("*%-+10d*\n", PAGES);
  printf("*% 10d*\n", PAGES);
  printf("*%010d*\n", PAGES);
  printf("*%.2d*\n", PAGES);
  return 0;
}